<?php 
 
class MyHelper extends CApplicationComponent
{
    /**
     * Returns an array of localized month names
     *
     * @param string $width Either 'wide', 'abbreviated' or 'narrow'.
     * @return mixed
     */
    public function getMonthNames($width='abbreviated')
    {
        $tmp = CLocale::getInstance(Yii::app()->language)->getMonthNames($width);
        $result = array();
        foreach($tmp as $idx=>$name)
            $result[] = $name;
        return $result;
    }
    /**
     * Returns an array of localized week day names
     *
     * @param string $width Either 'wide', 'abbreviated' or 'narrow'.
     * @return mixed
     */
    public function getWeekDayNames($width='abbreviated')
    {
        $tmp = CLocale::getInstance(Yii::app()->language)->getWeekDayNames($width);
        $result = array();
        foreach($tmp as $idx=>$name)
            $result[] = $name;
        return $result;
    }
}
?>
